﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;

namespace ViewModels
{
    public class SessionViewModel
    {
        public Session Session { get; set; }
        public ObservableCollection<Idea> IdeaList { get; set; }
        public ObservableCollection<Participant> Participants { get; set; }

        public SessionViewModel()
        {
            IdeaList = new ObservableCollection<Idea>();
            Participants = new ObservableCollection<Participant>();
        }


        public void LoadIdeas(List<Idea> newIdeas )
        {
            foreach (var newIdea in newIdeas)
            {
                IdeaList.Add(newIdea);
            }
            
        }
        
        public void LoadParticipants(List<Participant> newParticipants )
        {
            foreach (var newParticipant in newParticipants)
            {
                Participants.Add(newParticipant);       
            }
        }


    }
}